package top.v5it.japi.ddd.example.account.service;

import top.v5it.japi.ddd.example.account.entity.Account;

import java.util.List;

/**
 * @author zhanpu
 * @date 2023/3/9
 */
public interface AccountService {

    /**
     * 查找账户
     *
     * @param id
     * @return
     */
    Account searchById(Long id);

    void modify(Account entity);

    void add(Account entity);

    void batch(List<Account> accounts);

    void test(Account account, String mode);

}
